A court has ruled against beachgoers who sought more access to the sand in a Rhode Island town where Taylor Swift owns a vacation home.